import request from '@/utils/request'
import defaultSettings from '@/settings'

//页面初始化
export function page() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/dateManager/CpgDateSwitch/page`,
    method: "get",
  });
}


export function switch1(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/dateManager/CpgDateSwitch/switch1`,
    method: "post",
    data
  });
}

export function switch2(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/dateManager/CpgDateSwitch/switch2`,
    method: "post",
    data
  });
}



export function update(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/dateManager/CpgDateSwitch/update`,
    method: "post",
    data
  });
}


export function update2(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/systemManager/dateManager/CpgDateSwitch/update2`,
    method: "post",
    data
  });
}
